package spring.mvc.case1.service;

import spring.mvc.case1.dao.UserDao;
import spring.mvc.case1.po.User;

public class UserService {

    private UserDao userDao;

    public void add(String uname) {
        System.out.println("UserService.add()");
        User u = new User();
        u.setUname(uname);
        userDao.add(u);
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}